<html>
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />

    <title>时间戳高亮</title>
    
        
    <!-- Site CSS -->
    <link href="http://cdn.bootcss.com/bootstrap/3.3.1/css/bootstrap.min.css" rel="stylesheet">
    <link href="http://cdn.bootcss.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
    <!--<link href="http://static.bootcss.com/www/assets/css/site.min.css?v5" rel="stylesheet">-->
    
    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="/assets/js/html5shiv.min.js?v=1f65f1e951"></script>
      <script src="/assets/js/respond.min.js?v=1f65f1e951"></script>
    <![endif]-->
    
</head>
<body>
   
    <pre>
        www
        wfwef
        wfewf
        wfef
    </pre>
    
    <pre>
        www
        wfwef
        wfewf
        wfef
    </pre>
  
   
       <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="http://cdn.bootcss.com/jquery/1.11.1/jquery.min.js"></script>
    <script src="http://cdn.bootcss.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>
    
      <script type="text/javascript">
    
    function createButton(){
         var $btn=$('<button/>');
         $btn.text("复制到内存");
         return $btif($do)
    }
    
    function CopyAct($dom){
        if($dom){
            var $ref=$dom.data('ref');
            if(!$ref){
                $ref = createButton();
                $dom.append($ref);
                $ref.hide();
                $dom.data('ref',$ref);
            }
            
            $dom.hover(function(){
                $ref.show();
            },function(){
                $ref.hide();
            });
        }
    }
    
    $(function(){
        $('prev').each(function(i,e){
            console.log(e);
            CopyAct($(e));
        });
    });
    
    

  </script>

</body>

</html>